package com.ophiux.rabbitmq.event;

import lombok.Data;
import org.springframework.cloud.bus.event.Destination;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @desc: 自定义网关刷新远程事件
 * @author: hhl
 * @date：2021/11/4 9:33
 */
@Data
public class OphiuxRemoteApplicationEvent extends RemoteApplicationEvent {

    private OphiuxRemoteApplicationEvent() {
    }

    private EventObj eventObj;

    public OphiuxRemoteApplicationEvent(EventObj source, String originService, String destinationService) {
        super(source, originService, destinationService);
        this.eventObj = source;
    }

    public OphiuxRemoteApplicationEvent(EventObj source, String originService) {
        super(source, originService, (Destination) null);
        this.eventObj = source;
    }
}
